<template>
    <div>
       <button @click="fn">加载</button>
    </div>
</template>
<script>
 export default {
     methods : {
            fn(){
                //   import('@/Layout/index.vue').then(res=>{
                //       console.log(res)
                //   })

                setTimeout(function(){
                    import('@/Layout/index.vue').then(res => {
                           console.log(res)
                    })
                },1000)
            }
     }
 }

</script>
